package com.example.ymm.modules1.mapper.my.user;

import com.example.ymm.base.CoreMapper;
import com.example.ymm.modules1.entity.my.user.KqDayLog;
import com.example.ymm.modules1.query.kq.KqDayLogQueryCriteria;
import com.example.ymm.modules1.service.dto.heng.kq.UserDayLogDto;
import com.example.ymm.modules1.service.dto.heng.kq.UserDayLogQueryCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface KqDayLogMapper extends CoreMapper<KqDayLog> {

    /**
     * 获取某天的day-log
     * @param criteria
     * @return
     */
    List<KqDayLog> getDayLogList(KqDayLogQueryCriteria criteria);



    /**
     * 考勤统计
     */
    List<UserDayLogDto>  userDaysCount(UserDayLogQueryCriteria criteria);


}